package com.midele.goodstuff.ui.realname

import android.os.Bundle
import android.os.PersistableBundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.graphics.Color
import com.google.accompanist.systemuicontroller.rememberSystemUiController
import com.midele.goodstuff.ui.theme.MidGoodStuffTheme


class RealNameActivity: ComponentActivity(){

    @OptIn(ExperimentalMaterial3Api::class)
    override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
        super.onCreate(savedInstanceState, persistentState)
        setContent {
            val systemUiController = rememberSystemUiController()
            val isDarkFont = true // 根据主题动态判断
            SideEffect {
                systemUiController.setStatusBarColor(
                    color = Color.Companion.Transparent, // 状态栏背景色
                    darkIcons = isDarkFont     // 字体颜色（true: 白色，false: 黑色）
                )
            }

            MidGoodStuffTheme {

            }
        }
    }
}